//
//  CNScoreView.m
//  chuiniu
//
//  Created by zheng ji on 14-7-23.
//  Copyright (c) 2014年 jxw. All rights reserved.
//

#import "CNScoreView.h"

@implementation CNScoreView

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
    }
    return self;
}
/**
 初始化分数面板。
 目前单机版只支持单用户
 */
-(void)initScoreBoard{
    UILabel* lblComputer=[[UILabel alloc]initWithFrame:CGRectMake(0, 0, 100, 20)];
    lblComputer.textAlignment=NSTextAlignmentLeft;
    lblComputer.text=@"手机";
    lblComputer.textColor=[UIColor blueColor];
    lblComputer.font=[UIFont systemFontOfSize:16];
    lblComputer.tag=-1;
    
    [self addSubview:lblComputer];
    
    UILabel* lblPlayer=[[UILabel alloc]initWithFrame:CGRectMake(0, 22, 100, 20)];
    lblPlayer.textAlignment=NSTextAlignmentLeft;
    lblPlayer.text=@"我";
    lblPlayer.textColor=[UIColor blueColor];
    lblPlayer.font=[UIFont systemFontOfSize:16];
    
    [self addSubview:lblPlayer];

}
/**
 设置玩家胜负数据
 player:玩家model
 
 */
-(void)setPlayerScorce:(CNPlayerModel*)player{
    
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
